x86/PV: avoid double stack reset during schedule tail handling
authorJan Beulich <jbeulich@suse.com>
Wed, 16 Dec 2020 15:42:50 +0000 (16:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Dec 2020 15:42:50 +0000 (16:42 +0100)
commit2c2c941686d2aedac0f09b6546c844c391c0f7e8
tree4f3e4cd7099430e9911f45208415650d146faa37
parent033a80677087b322789d2748e83b764545f76c6b
x86/PV: avoid double stack reset during schedule tail handling

Invoking check_wakeup_from_wait() from assembly allows the new
continue_pv_domain() to replace the prior continue_nonidle_domain() as
the tail hook, eliminating an extra reset_stack_and_jump().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/pv/domain.c
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/asm_defns.h